# Maintainer: Felix Yan <felixonmars@archlinux.org>

pkgname=libpoly
pkgver=0.1.11
pkgrel=1
pkgdesc='C library for manipulating polynomials'
arch=('loong64' 'x86_64')
url="https://github.com/SRI-CSL/libpoly"
license=('LGPL')
depends=('gmp')
makedepends=('cmake' 'ninja' 'python')
source=("https://github.com/SRI-CSL/libpoly/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
sha512sums=('df08a6bab33e27023316972e2496801cea4959faf403b5df8314fa45b4541cd1352583a44084bea130c1e3ca4ed86de032f7f96eeb915599f178e80976a68f7a')

build() {
  cd libpoly-$pkgver
  cmake -GNinja -DCMAKE_INSTALL_PREFIX=/usr .
  ninja
}

package() {
  cd libpoly-$pkgver
  DESTDIR="$pkgdir" ninja install
}
